package com.example.node.impl;

import com.example.node.model.LifeStyleModel;
import com.example.node.model.NowWeatherModel;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface WeatherApi {
    //实况天气
    //https://free-api.heweather.net/s6/weather/now?location=beijing&key=c6cab943ae5648dcbfc21e162d6b4698
    @GET("/s6/weather/now?")
    Call<NowWeatherModel> getNowWeather(@Query("location")String location, @Query("key")String key);

    //https://free-api.heweather.net/s6/weather/lifestyle?location=beijing&key=fe6588e61a5b4edda8b971ef79612fcc
    //生活指数
    @GET("/s6/weather/lifestyle?")
    Call<LifeStyleModel> getLifeStyle(@Query("location")String location, @Query("key")String key);
}
